﻿
Partial Class Consultas_Ofertas_ConMisOfertas
    Inherits PaginaComun

    Protected Sub ListView1_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView1.ItemCommand
        Select Case e.CommandName
            Case "Aplicar"
                Dim index As Integer = Convert.ToInt32(e.CommandArgument)
                ListView1.SelectedIndex = index
                Me.Pk1 = ListView1.SelectedValue
                ModalPopupExtender1.Show()
        End Select
    End Sub

    Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click
        Dim obj As New Ofertas
        Me.MsgModalPanel.Text = obj.Aplicar(Me.Pk1)
        Me.ModalPopup.Show()
        ListView1.DataBind()
    End Sub
End Class
